package com.example.jspwork.pojo;

//存放城市天气数据
public class InformBean {
    private Integer id; // 唯一编号，也即数据库中的主键
    private String city; // 地域
    private String weather; // 天气现象
    private String wind_dir ; // 风向
    private String wind_class; // 风力
    private Integer temp; // 温度
    private String uptime; // 数据更新时间

    public InformBean(Integer id, String city, String weather, String wind_dir, String wind_class, Integer temp, String uptime) {
        this.id = id;
        this.city = city;
        this.weather = weather;
        this.wind_dir = wind_dir;
        this.wind_class = wind_class;
        this.temp = temp;
        this.uptime = uptime;
    }
    public InformBean(Integer id, String city, String weather, String wind_dir, String wind_class, Integer temp) {
        this(id, city, weather, wind_dir, wind_class, temp, "");
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public String getWind_dir() {
        return wind_dir;
    }

    public void setWind_dir(String wind_dir) {
        this.wind_dir = wind_dir;
    }

    public String getWind_class() {
        return wind_class;
    }

    public void setWind_class(String wind_class) {
        this.wind_class = wind_class;
    }

    public Integer getTemp() {
        return temp;
    }

    public void setTemp(Integer temp) {
        this.temp = temp;
    }

    public String getUptime() {
        return uptime;
    }

    public void setUptime(String uptime) {
        this.uptime = uptime;
    }
}
